import React, { memo } from "react"
import type { ReactNode } from "react"
import http from "@/requset"
interface Iprops {
	children?: ReactNode
}
const MyMusic: React.FC<Iprops> = (props) => {
	console.log(props)
	const getData = async () => {
		try {
			const res = await http.get<any, any>("/banner")
			console.log(res)
		} catch (error) {
			// console.log(error)
		}
	}
	return (
		<div>
			MyMusic组件
			<button onClick={getData}>获取数据</button>
		</div>
	)
}
export default memo(MyMusic)
